<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('党员干部和干警违纪违法情况统计列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>填报单位：</label>
                                <input type="text" name="tbdw"/>
                            </li>
                            <li>
                                <label>填报日期：</label>
                                <input type="text" class="time-input" placeholder="请选择填报日期" name="tbrq"/>
                            </li>
                            <li>
                                <label >机关/类别：</label>
                                <select name="jg" th:with="type=${@dict.getType('lzda_jg')}">
                                    <option value="">所有</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                </select>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="lzda:dygbhgjwjwfqktj:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <!--<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="lzda:dygbhgjwjwfqktj:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="lzda:dygbhgjwjwfqktj:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>-->
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="lzda:dygbhgjwjwfqktj:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>

            <div class="col-sm-12 select-table  table-bordered">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('lzda:dygbhgjwjwfqktj:edit')}]];
        var removeFlag = [[${@permission.hasPermi('lzda:dygbhgjwjwfqktj:remove')}]];
        var jgDatas = [[${@dict.getType('lzda_jg')}]];
        var bccrycjDatas = [[${@dict.getType('lzda_bccrycj')}]];
        var bccryjbDatas = [[${@dict.getType('lzda_bccryjb')}]];
        var bccrygwDatas = [[${@dict.getType('lzda_bccrygw')}]];
        var bccrywjqxDatas = [[${@dict.getType('lzda_bccrywjqx')}]];
        var ccqkDatas = [[${@dict.getType('lzda_ccqk')}]];
        var prefix = ctx + "lzda/dygbhgjwjwfqktj";

        $(function() {
            var options = {
                url: prefix + "/list",
                // showColumns: false,
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "党员干部和干警违纪违法情况统计",
                columns: [
                    [
                        /*{checkbox: true},
                        {field: 'id', title: 'ID', visible: false},*/
                        {checkbox: true,colspan: 1,rowspan: 2,valign: 'middle',align: 'center'},
                        {title: 'ID', field: 'id',visible: false,colspan: 1,rowspan: 2},
                        /*{title: '',align: 'center', colspan: 2},*/
                        {title: '填报单位',align: 'center', colspan: 1,rowspan: 2, field: 'tbdw',valign: 'middle'},
                        {title: '填报日期',align: 'center', colspan: 1,rowspan: 2, field: 'tbrq',valign: 'middle'},
                        {title: '机关/类别',align: 'center', colspan: 1,rowspan: 2, field: 'jg',valign: 'middle'},
                        {title: '合计（人）',align: 'center', colspan: 1,rowspan: 2, field: 'hj',valign: 'middle'},
                        {title: '被查处人员层级（人）',align: 'center', colspan: 2},
                        {title: '被查处人员级别（人）',align: 'center', colspan: 3},
                        {title: '被查处人员岗位（人）',align: 'center', colspan: 6},
                        {title: '被查处人员违纪情形（人）',align: 'center', colspan: 9},
                        {title: '查处情况(人)',align: 'center', colspan: 4},
                        {
                            colspan: 1,
                            rowspan: 2,
                            valign: 'middle',
                            field: 'remark',
                            title: '备注'
                        },
                        {
                            colspan: 1,
                            rowspan: 2,
                            valign: 'middle',
                            title: '操作',
                            align: 'center',
                            formatter: function(value, row, index) {
                                var actions = [];
                                actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                                actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                                return actions.join('');
                            }
                        }
                    ],
                [
                    /*{
                        checkbox: true
                    },
                    {
                        field: 'id',
                        title: 'ID',
                        visible: false
                    },*/
                    // 二级表头：姓名
                    {
                        field: 'sjrs',
                        title: '市级',
                        align: 'center',
                    },
                    // 二级表头：姓名
                    {
                        field: 'xjrs',
                        title: '县级',
                        align: 'center',
                    },
                /*{
                    title: '被查处人员层级（人）', // 一级表头文本
                    align: 'center',
                    valign: 'middle',
                    children: [
                        // 二级表头：姓名
                        {
                            field: 'sjrs',
                            title: '市级',
                        },
                        // 二级表头：姓名
                        {
                            field: 'xjrs',
                            title: '县级',
                        },
                    ]
                },*/
                /*{
                    field: 'xjrs',
                    title: '被查处人员层级（人）/县级',
                },*/
                {
                    field: 'xcjrs',
                    title: '县处级',
                    align: 'center',
                },
                {
                    field: 'kjrs',
                    title: '科级',
                    align: 'center',
                },
                {
                    field: 'ybryrs',
                    title: '一般人员',
                    align: 'center',
                },
                /*{
                    field: 'bccryjb',
                    title: '被查处人员级别',
                    formatter: function(value, row, index) {
                       return $.table.selectDictLabel(bccryjbDatas, value);
                    }
                },*/
                /*{
                    field: 'bccrygw',
                    title: '被查处人员岗位',
                    formatter: function(value, row, index) {
                       return $.table.selectDictLabel(bccrygwDatas, value);
                    }
                },*/
                {
                    field: 'ybsrs',
                    title: '一把手',
                    align: 'center'
                },
                {
                    field: 'ldbzcyrs',
                    title: '领导班子成员',
                    align: 'center',
                },
                {
                    field: 'zhbmrs',
                    title: '综合部门',
                    align: 'center'
                },
                {
                    field: 'zfjdbmrs',
                    title: '执法监督部门',
                    align: 'center'
                },
                {
                    field: 'sydwrs',
                    title: '事业单位',
                    align: 'center'
                },
                {
                    field: 'gwqtrs',
                    title: '其他',
                    align: 'center'
                },
               /* {
                    field: 'bccrywjqx',
                    title: '被查处人员违纪情形',
                    formatter: function(value, row, index) {
                       return $.table.selectDictLabels(bccrywjqxDatas, value);
                    }
                },*/
                {
                    field: 'wfzzjlrs',
                    title: '违反政治纪律',
                    align: 'center'
                },
                {
                    field: 'wfzzjvrs',
                    title: '违反组织纪律',
                    align: 'center'
                },
                {
                    field: 'wfljjlrs',
                    title: '违反廉洁纪律',
                    align: 'center'
                },
                {
                    field: 'wfqzjlrs',
                    title: '违反群众纪律',
                    align: 'center'
                },
                {
                    field: 'wfgzjlrs',
                    title: '违反工作纪律',
                    align: 'center'
                },
                {
                    field: 'wfshjlrs',
                    title: '违反生活纪律',
                    align: 'center'
                },
                {
                    field: 'wfzybxgdjsrs',
                    title: '违反中央八项规定精神',
                    align: 'center'
                },
                {
                    field: 'wfsggdrs',
                    title: '违反“三个规定”',
                    align: 'center'
                },
                {
                    field: 'wfqtrs',
                    title: '其他',
                    align: 'center'
                },
                /*{
                    field: 'ccqk',
                    title: '查处情况(人)',
                    formatter: function(value, row, index) {
                       return $.table.selectDictLabel(ccqkDatas, value);
                    }
                },*/
                {
                    field: 'dyzxtrs',
                    title: '第一种形态',
                    align: 'center'
                },
                {
                    field: 'dezxtrs',
                    title: '第二种形态',
                    align: 'center'
                },
                {
                    field: 'dszxtrs',
                    title: '第三种形态',
                    align: 'center'
                },
                {
                    field: 'dsizxtrs',
                    title: '第四种形态',
                    align: 'center'
                },
               ]]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>